package com.sky.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "用户信息表")
public class BookingOrder implements Serializable {

    @Column(name = "订单id")
    private Long orderId;

    @Column(name = "会议室id")
    private Long meetingRoomId;

    @Column(name = "用户id")
    private Long userId;

    @Column(name = "预定起始时间")
    private LocalDateTime bookingStartTime;

    @Column(name = "预定结束时间")
    private LocalDateTime bookingEndTime;

    @Column(name = "预定日期")
    private LocalDateTime bookingDate;

    @Column(name = "price_per_hour", nullable = false, precision = 10, scale = 2)
    private Double pricePerHour;

    @Column(name = "hours_booked", nullable = false)
    private Long hoursBooked;

    @Column(name = "total_price", nullable = false, precision = 10, scale = 2)
    private Double totalPrice;

    @Column(name = "订单状态")
    private String paymentStatus;

    @Column(name = "订单创建时间")
    private LocalDateTime createtime;

    @Column(name = "订单修改时间")
    private LocalDateTime updatetime;

}
